$OpenBSD: patch-library_Zend_Db_Adapter_Pdo_Mssql_php,v 1.1 2015/10/26 08:32:52 jasper Exp $

Security fix for CVE-2015-7695
https://github.com/zendframework/zf1/commit/2ac9c30f73ec2e6235c602bed745749a551b4fe2

--- library/Zend/Db/Adapter/Pdo/Mssql.php.orig	Tue Sep 16 22:47:34 2014
+++ library/Zend/Db/Adapter/Pdo/Mssql.php	Fri Oct 23 16:38:00 2015
@@ -410,7 +410,7 @@ class Zend_Db_Adapter_Pdo_Mssql extends Zend_Db_Adapte
     public function getServerVersion()
     {
         try {
-            $stmt = $this->query("SELECT SERVERPROPERTY('productversion')");
+            $stmt = $this->query("SELECT CAST(SERVERPROPERTY('productversion') AS VARCHAR)");
             $result = $stmt->fetchAll(Zend_Db::FETCH_NUM);
             if (count($result)) {
                 return $result[0][0];
